<!--<?php
print <<<EOT
-->


						<table width="638" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td>                     

        			    		<table width="638" border="0" cellspacing="0" cellpadding="0" align="center">
        			    		
        			    		<tr><td colspan=9>
                			      <table width="100%" border="0" cellspacing="0" cellpadding="0">        			    	
                			        <tr><td align="right" width="64"><strong>顾客</strong> :</td><td align="left" >&nbsp;{$user_info_ary['firstname']} {$user_info_ary['lastname']}</td></tr>
        			    		    <tr><td align="right" width="64"><strong>城市</strong> :</td><td align="left" >&nbsp;{$user_info_ary['city']}</td></tr>
        			    		    <tr><td align="right" width="64"><strong>国家</strong> :</td><td align="left" >&nbsp;{$COUNTRY_ARY[$user_info_ary['countryid']]}</td></tr>
        			    		  </table>
        			    		</td></tr>			    	
        			    		
        			    		<tr><td colspan=13 height=5></td></tr>
        			    		<tr><td colspan=13 height=5></td></tr>	
        			    		<tr><td colspan=13 bgcolor="#000000" height=1></td></tr>															
        						<tr class="cartAlternatingRowB"  height="30" >
        						    <td align="center" valign="middle" class="cartHeading" width="40"></td>
			    			        <td align="center" valign="middle" class="cartHeading" width="15"></td>
        			    			<td align="left" valign="middle" class="cartHeading" width="70">产品型号</td>
        			    			<td align="left" valign="middle" class="cartHeading" width="180" colspan=2>明细</td>
									 <td align="right" valign="middle" class="cartHeading" width="10"></td>
			    			        <td align="left" valign="middle" class="cartHeading" width="40">漆色</td>
									
									  <td align="left" valign="middle" class="cartHeading" width="40">面料 /<br>皮料</td>
			    			        <td align="right" valign="middle" class="cartHeading" width="50">立方米</td>
			    			         <td align="right" valign="middle" class="cartHeading" width="50">立方尺</td>
        			    			<td align="right" valign="middle" class="cartHeading" width="60">价格<br>{$money_type}</td>
        			    			<td align="right" valign="middle" class="cartHeading" width="40">数量</td>
        			    			<td align="right" valign="middle" class="cartHeading" width="70">总计<br>{$money_type} </td>
        						</tr>
        						<tr><td colspan=13 bgcolor="#A5AAB0" height=1></td></tr>
        						<tr><td colspan=13 bgcolor="#FFFFFF" height=4></td></tr>
			
<!--
EOT;
foreach ($info_ary as $k=>$v) {
    @list($type, $k,$fitemid) = explode("_", $k);
    $location = $v['intype'] == 0 ? 'Products' : $location_info_ary[$v['intype']];
    if (trim($all_product_info_ary[$k]['small_pic']) == "" || !file_exists("attachments/" . $all_product_info_ary[$k]['small_pic'])) {
        $all_product_info_ary[$k]['small_pic'] = 'no_40.gif';
    }
	$v['cbm']   = number_format($v['cbm'], 2, '.', ',');
	$v['cuft']   = number_format($v['cuft'], 2, '.', ',');
    $v['price']  = number_format($v['price'], 2, '.', ',');
	$v['cost']   = number_format($v['cost'], 2, '.', ',');
	
	 $fabric_choice = ! empty($v['fabid']) ? $_fabric_item[$v['fabid']] : $_leather_item[$v['leaid']];
print <<<EOT
-->
        			            <tr class="cartAlternatingRowB1" height=45>
        			                <td align="center" valign="middle"><img src="attachments/{$all_product_info_ary[$k]['small_pic']}" border="0" class="picture" width="40" height="40"></td>
			    			        <td align="center" valign="middle">&nbsp;</td>			    			
        			    			<td align="left" valign="middle" >{$v['code']}</td>
										<td align="left" valign="top" colspan=2 class="cartmiddle">{$v['name']}</td><td align="right" valign="middle"></td>
			    			        <td align="left" valign="middle">{$_finish_item[$v['fitemid']]}</td>
									
									<td align="left" valign="middle">{$fabric_choice}</td>
			    			        <td align="right" valign="middle">{$v['cbm']}</td>
        			    			<td align="right" valign="middle">{$v['cuft']}</td>
        			    			<td align="right" valign="middle">{$v['price']}</td>
        			    			<td align="right" valign="middle">{$v['count']}</td>
        			    			<td align="right" valign="middle">{$v['cost']}</td>
        						</tr>

<!--
EOT;
} 
$total_cost  = number_format($total_cost, 2, '.', ',');
print <<<EOT
--> 
        						<tr><td colspan=13 bgcolor="#A5AAB0" height=1></td></tr>
        						<tr>
        						  <td colspan=8 height=25 align="right"><strong>总计</strong> :</td>
								  <td align="right" valign="middle"><div class="kk">{$total_cbm}</div></td>
								  <td align="right" valign="middle"><div class="kk">{$total_cuft}</div></td>
								  <td align="right" valign="middle"></td>
        						  <td colspan=1 align="right">$total_qty</td>
        						  <td colspan=1 align="right">$total_cost</td>
        						</tr>        						
        						
        						</td></tr>
        						</table>						
                      
                              
                            
                            </td>
                          </tr>
                          <tr>
                            <td align="right" valign="bottom"><div class="paragraphSpacer"><img name="" src="./images/spacer.gif" width="0" height="0" alt=""></div>
                              <div align="right"><img src="./images/colour/jf_colour_gold_100.gif" alt="Gold Accent" name="jf_colour_gold_100" width="10" height="10" id="jf_colour_gold_100"></div></td>
                          </tr>
                        </table>

<!--
EOT;
?>-->